/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import com.primecodegen.util.util;
import freemarker.template.Configuration;
import freemarker.template.Template;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Mohammad
 */
public class testt {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            File f = new File(util.getBundleValue("RELATIVE_TEMPLATE_DIRECTORY"));
            boolean exists = f.exists();
            System.out.print(exists);
            Configuration cfg = new Configuration();
            cfg.setDirectoryForTemplateLoading(f);
            Template temp = cfg.getTemplate("test.ftl");
            
        } catch (IOException ex) {
            Logger.getLogger(testt.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
